package com.meisiabc.app.repository.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 购买课程记录表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PurchaseCourse {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uniqueid;

    private String material;

    private String studentId;

    private String sellerId;

    private String teacherId;

    private Integer hoursEnrolled;

    private Integer hoursRemaining;

    private Integer lessonsCompleted;

    private Integer state;

    private String purchaseDate;

    @TableLogic
    private Integer isDelete;

    private String payMethod;

    private String eventsWay;

    private String type;

    private String remark;

    private BigDecimal money;

    private String materialLevel;

    private String isPay;
}
